package com.dibang.app.operation.view.abs;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.ViewPager;
import android.view.View;

import com.amap.api.maps.TextureMapView;
import com.amap.api.maps.model.Marker;
import com.dibang.app.view.DiffuseWaveView;
import com.yinglan.scrolllayout.ScrollLayout;

/**
 * Created by wxl on 2019/7/24.
 */

public interface MainView {

    /**
     * UpScrollLayout 的滑动处理
     */
    void onUpScrollLayoutChangedWaveViewExpand(@NonNull ScrollLayout mScrollLayout, @NonNull DiffuseWaveView diffuseWaveView);

    /**
     * mapView 的处理
     */
    void onMapViewExpand(@NonNull TextureMapView mapView, Marker marker);

    /**
     * 适配viewPager
     * @param viewPager
     */
    void onViewPagerExpand(@NonNull FragmentManager fm, @NonNull ViewPager viewPager);

    /**
     * 当tab改变时view的状态
     * @param isOpen
     * @param peerPointer
     * @param targetView
     */
    void onPeerTabSelectChanged(boolean isOpen,int peerPointer,@NonNull View targetView);

    /**
     * 重新定位
     */
    void reloadLocation();


    /**
     * 选择出发时间
     */
    void onSelectStartTime(@Nullable Context context);


    /**
     * 选择当前城市
     * @param act
     */
    void onSelectCurrentCity(FragmentActivity act);

}
